package org.aurora.module.user.domain.entity;

import lombok.*;
import org.aurora.framework.boot.domain.AbstractDomainObject;
import org.aurora.framework.boot.domain.Entity;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * Role
 * <pre>
 * description: 角色领域实体
 * create date: 2025-03-22 18:05:41
 * </pre>
 *
 * @author cao.yong
 */
@Getter
@Setter
@NoArgsConstructor
@ToString
public class Role extends AbstractDomainObject<Long> implements Entity<Long> {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 用户ID
     */
    private Long id;
    /**
     * 角色名称
     */
    private String name;
    /**
     * 角色编码
     */
    private String code;
    /**
     * 角色备注
     */
    private String remark;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 最后修改时间
     */
    private LocalDateTime lastModifiedTime;
    /**
     * 租户ID
     */
    private Long tenantId;
    /**
     * 删除标志
     */
    private Integer deleted;
}
